
class MyClass:
  def __init__(self,x,y):
    self.x = x
    self.y = y

c = MyClass('tom',17)
print(c.x)

class YourClass:
  def __new__(cls,x:str):
    instance = super(YourClass, cls).__new__(cls)
    instance.x = x
    return instance


d = YourClass('jack')
print(d.x)